package com.woniu.user.entity.feign;

import com.woniu.entity.Result;
import com.woniu.user.pojo.User;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service", path = "user",contextId = "user")
public interface UserInfoFeignClient {

    @GetMapping("/{username}")
    public Result<User> getByUsername(@PathVariable("username") String username);
}
